/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-23
 * Time: 15:49
 */
class Tmp{
    int a=0;
    public Tmp(){
        func();
    }
    public void func(){
        System.out.println("T name");
    }
}
class Add extends Tmp{

    int a=10;

    public Add(){
        System.out.println(this.a);
        System.out.println("B name"+"  "+name);
    }
    String name="小星";
    @Override
    public void func() {
        System.out.println("B name"+"  "+name);
    }
}
public class main9 {
    public static void main(String[] args) {
        Add add=new Add();
    }
}